package cn.itcast.day01.demo03;

/*
定义一个方法，判断两个数是否相同
返回值类型：boolean
方法名称是：isSame
参数列表：int a,int b;
*/
/*public class Demo01MethodSame {
    public static void main(String[] args) {
        System.out.println(isSame(10,20));//false
        System.out.println(isSame(20,20));//true
    }
    public static int isSame(int a,int b){
   /*     boolean same;
        if (a==b){
            same =true;
        }else {
            same = false;
        }
       // boolean same = a == b ? true : false;
       //boolean same = a == b;
        return a == b;
    }
}

 */